home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT CrashControl.xpl < prev    next >
Text File  |  2004-02-21  |  2KB  |  76 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="System\Crash Control"
  5. "NAME"="Crash Control Options #1"
  6. "VERSION"="1.09"
  7. "OSVERSION"="0101011"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Write Dump to MEMORY.LOG"
  10. "TEXT 2"="Automatically restart Explorer after crash"
  11. "TEXT 3"="Display filename of device drive causing STOP"
  12. "DESCRIPTION 1"="Several options what Windows should do if it crashes (STOP Error)."
  13. "DESCRIPTION 2"="More options can be configured using "Control Panel" -> "System" -> "Startup/Shutdown"."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18.  
  19.  
  20. sPath="HKLM\System\CurrentControlSet\Control\CrashControl\"
  21. sDump="CrashDumpEnabled"
  22.  
  23. sRest="HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoRestartShell" 'REG_DWORD
  24.  
  25. sStrange="HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\1" 'REG_DWORD and YES: the valuename is "1"
  26.  
  27.  
  28. Sub Plugin_Initialize 
  29.  if RegPathExists(sPath)=false then
  30.     Disable
  31.  else
  32.     i=RegReadValue(sPath & sDump)
  33.     if i=1 then Call SetUIElement(1,True)
  34.  
  35.     i=RegReadValue(sRest)
  36.     if i=1 then Call SetUIElement(2,True)
  37.  
  38.     i=RegReadValue(sStrange)
  39.     if i=1 then Call SetUIElement(3,True)
  40.  end if
  41. End Sub
  42.  
  43. Sub Plugin_CheckData(ElementIndex)
  44. End Sub
  45.  
  46. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  47.  b=GetUIElement(1)
  48.  if b=true then
  49.     Call RegWriteValue(sPath & sDump,1,2)
  50.  else
  51.     Call RegWriteValue(sPath & sDump,0,2)
  52.  end if
  53.  
  54.  b=GetUIElement(2)
  55.  if b=true then
  56.     Call RegWriteValue(sRest,1,2)
  57.  else
  58.     Call RegWriteValue(sRest,0,2)
  59.  end if
  60.  
  61.  b=GetUIElement(3)
  62.  if b=true then
  63.     Call RegWriteValue(sStrange,1,2)
  64.  else
  65.     i=RegReadValue(sStrange)
  66.     if IsEmpty(i)=false then
  67.        Call RegDeleteValue(sStrange)
  68.     end if
  69.  end if
  70.  
  71.  Call Restart
  72. End Sub
  73.  
  74. Sub Plugin_Terminate 
  75. End Sub
  76.